<?php
declare (strict_types = 1);

namespace app\api\model\v1;

use think\Model;

/**
 * @mixin \think\Model
 * //月报表
 */
class MonthReport extends AppModel
{
    //状态
    const IS_STATUS_ONE = 1;
    const IS_STATUS_TWO = 2;
    const IS_STATUS_THREE = 3;
    public static $is_status = array(
        self::IS_STATUS_ONE => '待审核',
        self::IS_STATUS_TWO=> '已审核',
        self::IS_STATUS_THREE=> '不合格'
    );


    //成绩
    const IS_HOT_ONE = 1;
    const IS_HOT_TWO = 2;
    const IS_HOT_THREE = 3;
    const IS_HOT_FOUR = 4;

    public static $is_hot = array(
        self::IS_HOT_ONE => '普通',
        self::IS_HOT_TWO=> '一般',
        self::IS_HOT_THREE=> '良好',
        self::IS_HOT_FOUR=> '优秀'
    );


    public function admin(){
        return $this->belongsTo(Admins::class,'admin_id')->field('id,username');
    }

}
